import request from '@/utils/request'


export default {
    getOwnerListPage(current,limit,ownerQuery){
        return request({
            url: `/proservice/pro-owner/pageOwnerCondition/${current}/${limit}`,
            method: 'post',
            data:ownerQuery
        })
    },
    deleteOwnerById(id){
        return request({
            url: `/proservice/pro-owner/${id}`,
            method: 'delete'
        })
    },
    addOwner(proOwner){
        return request({
            url: `/proservice/pro-owner/addOwner`,
            method: 'post',
            data: proOwner
        })
    },
    getOwnerById(id){
        return request({
            url: `/proservice/pro-owner/getOwner/${id}`,
            method: 'get'
        })
    },
    updateOwnerInfo(proOwner){
        return request({
            url: `/proservice/pro-owner/updateOwner`,
            method: 'post',
            data: proOwner
        })
    }
}

